Integrand size = 25, antiderivative size = 260 \[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {4}{3} b d^{3/2} n \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\frac {1}{2} b d^{3/2} n \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right ) \]
[Out]
Time = 0.29 (sec) , antiderivative size = 260, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {272, 52, 65, 214, 2390, 6131, 6055, 2449, 2352} \[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {1}{3} \left (-3 d^{3/2} \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {1}{2} b d^{3/2} n \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {4}{3} b d^{3/2} n \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )-b d^{3/2} n \text {arctanh}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\frac {1}{2} b d^{3/2} n \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {e x^2+d}}\right )-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}-\frac {4}{3} b d n \sqrt {d+e x^2} \]
[In]
[Out]
Rule 52
Rule 65
Rule 214
Rule 272
Rule 2352
Rule 2390
Rule 2449
Rule 6055
Rule 6131
Rubi steps \begin{align*} \text {integral}& = \frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (\frac {d \sqrt {d+e x^2}}{x}+\frac {\left (d+e x^2\right )^{3/2}}{3 x}-\frac {d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{x}\right ) \, dx \\ & = \frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{3} (b n) \int \frac {\left (d+e x^2\right )^{3/2}}{x} \, dx-(b d n) \int \frac {\sqrt {d+e x^2}}{x} \, dx+\left (b d^{3/2} n\right ) \int \frac {\tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{x} \, dx \\ & = \frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{6} (b n) \text {Subst}\left (\int \frac {(d+e x)^{3/2}}{x} \, dx,x,x^2\right )-\frac {1}{2} (b d n) \text {Subst}\left (\int \frac {\sqrt {d+e x}}{x} \, dx,x,x^2\right )+\frac {1}{2} \left (b d^{3/2} n\right ) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{x} \, dx,x,x^2\right ) \\ & = -b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{6} (b d n) \text {Subst}\left (\int \frac {\sqrt {d+e x}}{x} \, dx,x,x^2\right )+\left (b d^{3/2} n\right ) \text {Subst}\left (\int \frac {x \tanh ^{-1}\left (\frac {x}{\sqrt {d}}\right )}{-d+x^2} \, dx,x,\sqrt {d+e x^2}\right )-\frac {1}{2} \left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right ) \\ & = -\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-(b d n) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\frac {x}{\sqrt {d}}\right )}{1-\frac {x}{\sqrt {d}}} \, dx,x,\sqrt {d+e x^2}\right )-\frac {1}{6} \left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right )-\frac {\left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{e} \\ & = -\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )+(b d n) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1-\frac {x}{\sqrt {d}}}\right )}{1-\frac {x^2}{d}} \, dx,x,\sqrt {d+e x^2}\right )-\frac {\left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{3 e} \\ & = -\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {4}{3} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\left (b d^{3/2} n\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\frac {\sqrt {d+e x^2}}{\sqrt {d}}}\right ) \\ & = -\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {4}{3} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\frac {1}{2} b d^{3/2} n \text {Li}_2\left (1-\frac {2}{1-\frac {\sqrt {d+e x^2}}{\sqrt {d}}}\right ) \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.50 (sec) , antiderivative size = 301, normalized size of antiderivative = 1.16 \[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\frac {b e n x^2 \sqrt {d+e x^2} \left (-\frac {1}{4} \, _3F_2\left (-\frac {1}{2},1,1;2,2;-\frac {e x^2}{d}\right )+\frac {d \left (-1+\left (1+\frac {e x^2}{d}\right )^{3/2}\right ) \log (x)}{3 e x^2}\right )}{\sqrt {1+\frac {e x^2}{d}}}+\frac {b d n \sqrt {d+e x^2} \left (-\, _3F_2\left (-\frac {1}{2},-\frac {1}{2},-\frac {1}{2};\frac {1}{2},\frac {1}{2};-\frac {d}{e x^2}\right )+\sqrt {1+\frac {d}{e x^2}} \log (x)-\frac {\sqrt {d} \text {arcsinh}\left (\frac {\sqrt {d}}{\sqrt {e} x}\right ) \log (x)}{\sqrt {e} x}\right )}{\sqrt {1+\frac {d}{e x^2}}}+\frac {1}{3} \sqrt {d+e x^2} \left (4 d+e x^2\right ) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )+d^{3/2} \log (x) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )-d^{3/2} \left (a-b n \log (x)+b \log \left (c x^n\right )\right ) \log \left (d+\sqrt {d} \sqrt {d+e x^2}\right ) \]
[In]
[Out]
\[\int \frac {\left (e \,x^{2}+d \right )^{\frac {3}{2}} \left (a +b \ln \left (c \,x^{n}\right )\right )}{x}d x\]
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\int { \frac {{\left (e x^{2} + d\right )}^{\frac {3}{2}} {\left (b \log \left (c x^{n}\right ) + a\right )}}{x} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\int \frac {\left (a + b \log {\left (c x^{n} \right )}\right ) \left (d + e x^{2}\right )^{\frac {3}{2}}}{x}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\int { \frac {{\left (e x^{2} + d\right )}^{\frac {3}{2}} {\left (b \log \left (c x^{n}\right ) + a\right )}}{x} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\int \frac {{\left (e\,x^2+d\right )}^{3/2}\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{x} \,d x \]
[In]
[Out]